SRC = geometry.cpp

OBJ = $(SRC:.cpp=.o)

OUT = ./lib/lib$(SRC:.cpp=.a)

# C++ compiler flags
CCFLAGS = -Wall

# compiler
CC = g++

# include directories
INCLUDES = -I. -I./include -I/usr/local/include

# library paths
LIBS = -L./lib -L/usr/local/lib -lm

#compile flags
LDFLAGS = -g

.SUFFIXES: .cpp

default: $(OUT)

.cpp.o:
	$(CC) $(INCLUDES) $(CCFLAGS) -c $< -o $@

$(OUT): $(OBJ)
	ar rcs $(OUT) $(OBJ)

clean:
	rm -f $(OBJ) $(OUT) Makefile.bak